package com.dan.csmall.cart.webapi.quartz;

import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.stereotype.Component;

import java.util.Date;

import static java.lang.Thread.sleep;

@Component
@EnableScheduling
public class TaskJobTwo {


    public  void testJobTwoMethod() throws InterruptedException {
        System.out.println("2  定时任务2正在执行......" + new Date());
        sleep(3000);

        System.out.println("2  定时任务2业务代码执行完毕......" + new Date());
    }
}
